import request from '@/utils/request'

// 查询电动车信息列表
export function listVehicleofwtd(query) {
  return request({
    url: '/system/vehicleofwtd/list',
    method: 'get',
    params: query
  })
}

// 查询电动车信息详细
export function getVehicleofwtd(vehicleId) {
  return request({
    url: '/system/vehicleofwtd/' + vehicleId,
    method: 'get'
  })
}

// 新增电动车信息
export function addVehicleofwtd(data) {
  return request({
    url: '/system/vehicleofwtd',
    method: 'post',
    data: data,
    headers: { repeatSubmit: false }
  })
}

// 修改电动车信息
export function updateVehicleofwtd(data) {
  return request({
    url: '/system/vehicleofwtd',
    method: 'put',
    data: data,
    headers: { repeatSubmit: false }
  })
}

// 删除电动车信息
export function delVehicleofwtd(vehicleId) {
  return request({
    url: '/system/vehicleofwtd/' + vehicleId,
    method: 'delete'
  })
}
